<template>
  <div>
    <div class="container layout column-elem " style="margin-top: 40px">
        <div >
            <div class="container layout column-elem ">
                <div>
                    <!-- 用户 -->
                    <div class="content" style="padding:0px ">
                        <div class="path-description" style="margin:0px">
                            <div class="path-desc-top clearfix displayStyle" style=" height: 100px;">
                                <div class="name-total-box clearfix">
                                    <div class=" col-md-offset-1 path-name">
                                        <h4 v-if="!user">请先登录！</h4>
                                        <h4 v-if="user">{{user}},你好！</h4>
                                    </div>
                                </div>
                                <div class="col-md-offset-1 path-total-courses"
                              >
                                    <span class="total-courses-box"> 退出 </span>
                                    <router-link to="/order" ><span class="total-courses-box">我的订单 </span> </router-link>

                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 功能导航 -->
                    <div class="content" style="padding: 0">
                        <div class="path-description" >
                            <div class="path-desc-top clearfix"
                              >
                                <div class="name-total-box clearfix"  style="width: 94%;margin-left: 3%">

                                    <div class="path-total-courses">
                                        <div class="nav-mine" style="border-radius: 12px;">
                                            <div class=" path-name">
                                                <div class="nav-mine-content">
                                                    <i>个人信息</i>
                                                </div>
                                                <div class="nav-mine-content">
                                                    <i>身份认证</i>
                                                </div>
                                                <div class="nav-mine-content">
                                                    <i>手机绑定</i>
                                                </div>
                                                <div class="nav-mine-content">
                                                    <i>账户安全</i>
                                                </div>
                                                <div class="nav-mine-content">
                                                    <i>投诉反馈</i>
                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
  </div>
</template>

<script>
export default {
    name:'MineIndex',
    data(){
        return {
            user:localStorage.getItem('user')
        }
    }

}
</script>

<style scoped>
.container {
    padding-left: 0%;
    padding-right: 0%;
}

.navbar-banner {
    margin-top: 50px;
    background: url("./img/homepage-bg.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    line-height: 50px;
    transform: translate(-50%);
}

button {
    background-color: #2e7ba7;
}

.layout {
    margin-top: 20px;
}

.form-group .btn {
    margin: 20px 0;
}

/* 手机端导航 */
.navbar-fixed-bottom button {
    border: none;
    outline: none;
    background: none;
}

.navbar-fixed-bottom .nav-bottom {
    position: relative;
}

.navbar-fixed-bottom button:last-child {
    position: absolute;
    right: 5%;
}

/* 手机端导航end */

.column {
    position: relative;
}
.total-courses-box {
    padding: 6px;
    color: #787878;
    background: #fff;
    border-radius: 4px;
}

.path-total-courses {
    font-size: 15px;
    line-height: 53px;
}

.path-description .path-desc-top .name-total-box h4 {
    font-size: 20px;
    color: black;
    font-weight:bold;
}

.path-description {
    border-radius: 18px;
}
.col-md-8 {
    width: 100%;
}

.text-right {
    /* margin-left: 15px; */
    text-align: left;
}

.path-desc-btm .col-md-4 {
    padding-left: 0%;
}

.path-desc-btm .col-xs-12 {
    padding-left: 0%;
}

.nav-mine {
    background-color: white;
    box-shadow: 0 0 4px 2px rgb(211, 210, 210);
}

.nav-mine .nav-mine-content {
    width: 19%;
    display: inline-block;

}

.nav-mine-content i {
    font-size: 12px;
}

.nav-mine-content i::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background: url('img/homepage-bg.png') no-repeat; */
    background-size: cover;
    margin: auto;
    margin-top: 9px;

}

.nav-mine-content:nth-child(1) i::before {
    background: url('img/perInfor.jpg') no-repeat;
    background-size: cover;

}

.nav-mine-content:nth-child(2) i::before {
    background: url('img/authIdent.jpg') no-repeat;
    background-size: cover;
}

.nav-mine-content:nth-child(3) i::before {
    background: url('img/phoneBind.jpg') no-repeat;
    background-size: cover;

}
.nav-mine-content:nth-child(5) i::before {
    background: url('img/accountsafe.jpg') no-repeat;
    background-size: cover;

}

.nav-mine-content:nth-child(4) i::before {
    background: url('img/feedback.jpg') no-repeat;
    background-size: cover;

}
.path-description .path-desc-top .name-total-box .path-total-courses {
    text-align: center;
}

.total-courses-box {
    background-color: #2e7ba7;
    margin-left: 5px;
    color: white;
}
    /*退出按钮，我的订单位置*/
.displayStyle{
    display:-webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
</style>
